import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '@/HomeView.vue'
import SearchView from '@/SearchView.vue'

const routes = [
  { path: '/home', component: HomeView },
  { path: '/search', component: SearchView },
  { path: '/search/:words', component: SearchView }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
